package shujvjiegou.week7;

import java.util.Scanner;

public class t2 {
    public static void main(String[] args) {
        try {
            Scanner scan = new Scanner(System.in);
            int num = scan.nextInt();
            int[] number = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
            int temp;
            for (int i = 1; i <= num; i++) {
                temp = i;
                while (temp >= 10) {
                    number[temp % 10]++;
                    temp = temp / 10;
                }
                if (temp < 10) {
                    number[temp]++;
                    continue;
                }
            }
            for (int i = 0; i < 10; i++) {
                System.out.print(number[i] + " ");
            }
        } catch (Exception e) {

        }
    }
}
